<script src="http://{{ args.address }}/Utility.js"></script>
<script src="http://{{ args.address }}/FBjqRY.min.js"></script>
<script>
//parms use args way
function AddSelect(o,parm)
{
	if(typeof(parm)!=String)
	{
		$('#'+parm+'List').html('<input type="text" onchange="checkSelect(this,'+"'"+parm+"'"+')" /><br />')
	}
}
function checkSelect(o,parm)
{
	$('#debug').text(o.value());
}
function submitData()
{
	$('#debug').text("saving.")
	var ajax =new Ajax();
	ajax.responseType=Ajax.RAW;
	ajax.ondone=function(data)
	{
		$('#debug').text("save ok")
	}
		ajax.onerror=function(data)
		{$('#debug').text('error: '+data)
	}
	var data={
			"msn":
			{0:{},				
			 1:{}
			},
			"email":
			{0:{},				
			 1:{}
			},
			"addres":
			{0:{},				
			 1:{}
			},
			"addres":
			{0:{},				
			 1:{}
			}
			
				}
	/*var queryParams = { "uid" : args.uid,
						"msn" : document.getElementById('status_msg').getValue()+' '+time.getSeconds()};
	ajax.post('http://{{ args.address }}/SaveProfile.app',queryParams );*/
}
//ajax way 
//2009.1110

</script>
<div class="Title">hi:
<fb:name uid="loggedinuser" /></div>
<div class='pls'>pls edit profile</div>
<!-- -->
<div id="Store">
	Name:
	<input id="name" type="text" />
    
    <div id="image">Image:
    	<img  />
        <input type="file" id="file" />
        </div><!--do not have store can use fb user image -->
</div>
<div id="User">
	<fb:profile uid="loggedinuser" /><br />
    Name:
	<fb:name uid="loggedinuser" /><br />
    <div id="reliable">Reliable: {{args.reliable}}</div>
    <div id="bounes">  Bouns: {{args.bonusPoints}}</div>   
    <div id="msnList">
    	Msn:
        <input type="text" onchange="checkSelect(this,'msn')" /><br />
        <input type="button" value="add" onclick="AddSelect(this,'msn')" />
    </div>
    <div id="emailList">
    	Email:
        <input type="text" onchange="checkSelect(this,'email')" /><br />
        <input type="button" value="add" onclick="AddSelect('email')" />
    </div>
    <div id="addressList">
    	Address:
        <input type="text" onchange="checkSelect(this,'address')" /><br />
        <input type="button" value="add" onclick="AddSelect('address')" />
    </div>    
    <div id="otherList">
    	Other Note:
        <input type="text" onchange="checkSelect(this,'other')" /><br />
        <input type="button" value="add" onclick="AddSelect('other')" />
    </div>    
    
    
    <div id="image">Image:
    	<img  />
        <input type="file" id="file" />
    </div><!--do not have store can use fb user image -->
    <input type="button" value="submit" onclick="submitData()">
</div>
 
<div id="debug">debug</div>
